﻿using System.Collections.Generic;
using RayDen.Library.Core.Primitives;

namespace RayDen.Engines.Ethalon.Entity
{
    public class TriangleMesh : GeometryShape
    {
        protected internal Point[] vertices;
        protected internal Normal[] normals;
        protected internal UV[] texCoords;

        protected internal List<Triangle> triangles;

        public override bool Intersect(RayDifferential ray)
        {
            throw new System.NotImplementedException();
        }

        public override bool Intersect(RayDifferential ray, out float dist)
        {
            throw new System.NotImplementedException();
        }
    }

    public class Triangle : GeometryShape
    {
        private TriangleMesh owner;
        public uint v0, v1, v2;

        public Triangle(TriangleMesh mesh)
        {

            owner = mesh;
        }

        public override bool Intersect(RayDifferential ray)
        {
            throw new System.NotImplementedException();
        }

        public override bool Intersect(RayDifferential ray, out float dist)
        {
            throw new System.NotImplementedException();
        }
    }
}